package org.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderUser {
    private Integer orderId;
    private String openId;
    private String username;
    private String phone;
    private String address;
    private BigDecimal price;
    private String createTime;
    private String status;
    private List<OrderGoods> orderGoods;

    public OrderUser(Integer orderId, String openId, String username, String phone,
                     String address, BigDecimal price, String createTime, String status) {
        this.orderId = orderId;
        this.openId = openId;
        this.username = username;
        this.phone = phone;
        this.address = address;
        this.price = price;
        this.createTime = createTime;
        this.status = status;
    }
}
